package com.qfedu.knowledge.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.knowledge.entity.bo.QuestionInfoBO;
import com.qfedu.knowledge.entity.dto.QueryDTO;
import com.qfedu.knowledge.entity.vo.QuestionInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName IQuestionInfoDao
 * @Author ykx
 * @Date 2024/1/3 10:18
 * @Version 1.0
 */
@Repository
public interface IQuestionInfoDao extends BaseMapper<QuestionInfoBO> {

    /**
     * @return List<QuestionInfoVO>
     */
    List<QuestionInfoVO> getQuestionInfoByPage(@Param("userId") Long userId, @Param("queryDTO") QueryDTO queryDTO);

    QuestionInfoVO getBaseInfoById(@Param("id") Long id);

}
